package com.usian.admin.job;

import com.usian.admin.service.WemediaNewsAutoService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**/
@Component
@Slf4j
public class WemediaAutoAuditJob {


    @Autowired
    private WemediaNewsAutoService wemediaNewsAutoService;

@XxlJob("wemediaNewsAutoPub")
    public ReturnT<String> wemediaAutoAudit(String parm){
   //调用自媒体文章审核方法，发布文章
    log.info("自媒体文章审核任务开始。。。。。");
    wemediaNewsAutoService.auditWmNewsTask();
    log.info("自媒体文章审核任务结束。。。。。");
    return ReturnT.SUCCESS;
}
}
